
public class TA {
	ReferenceMonitor RM=new ReferenceMonitor();
	TA()
	{
		
	}
	public String getaction(String[] line)
	{
		if (line[2].equals("get_my_course"))
		{String n=get_my_courses(line[2]);
			return(n);
		}
		else if (line[2].equals("Get_Students"))
		{
			return(Get_Students( line ));
		}
		else if (line[2].equals("SubmitGrade"))
		{
			
			return( Submit_Grade( line ) );
		}
		else if (line[2].equals("GET_PII"))
		{
			
			return(GET_PII(line));
		}
		else
			return "";
	}
	public String get_my_courses( String id)
	{
		String n=RM.get_my_courses(id);
		return( n );
	}
	public String Get_Students(String[] line)
	{
		String res=RM.Get_Students(line);
		return(res);
	}
	public String Submit_Grade(String[] line){
		String res=RM.Submit_Grade(line);
		
		return(res);
	}
	public String GET_PII(String[] line)
	{
		return ( RM.GET_PII() );	
	}
}
